diff options
author | Lorenz Diener <[email protected]> | 2018-05-07 00:53:13 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-05-07 00:53:13 +0200 |
commit | 8d5fe70c7e52656b2f89d0acfb1aed23bf583041 (patch) | |
tree | a210ef1ba6255d8f64fdd623de41f0e6931c4508 /tests/cassettes/test_status_post[Content warning-None].yaml | |
parent | c0a0c8f517611d0026d6d37fbe7c57eae1f1a3bb (diff) | |
download | mastodon.py-8d5fe70c7e52656b2f89d0acfb1aed23bf583041.tar.gz |
Fix some bugs, update tests
Diffstat (limited to 'tests/cassettes/test_status_post[Content warning-None].yaml')
-rw-r--r-- | tests/cassettes/test_status_post[Content warning-None].yaml | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/cassettes/test_status_post[Content warning-None].yaml b/tests/cassettes/test_status_post[Content warning-None].yaml index 0a0ae66..56913ea 100644 --- a/tests/cassettes/test_status_post[Content warning-None].yaml +++ b/tests/cassettes/test_status_post[Content warning-None].yaml | |||
@@ -1,6 +1,6 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: status=Toot%21&spoiler_text=Content+warning | 3 | body: spoiler_text=Content+warning&status=Toot%21 |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: ['*/*'] |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | Accept-Encoding: ['gzip, deflate'] |
@@ -12,23 +12,23 @@ interactions: | |||
12 | method: POST | 12 | method: POST |
13 | uri: http://localhost:3000/api/v1/statuses | 13 | uri: http://localhost:3000/api/v1/statuses |
14 | response: | 14 | response: |
15 | body: {string: '{"id":"99979652224677404","created_at":"2018-05-06T01:00:23.848Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content | 15 | body: {string: '{"id":"99984774365334064","created_at":"2018-05-06T22:43:01.520Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content |
16 | warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979652224677404","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979652224677404","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 16 | warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99984774365334064","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774365334064","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
17 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 17 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
18 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | 18 | Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI |
19 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":129},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | 19 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":1,"statuses_count":2},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} |
20 | headers: | 20 | headers: |
21 | Cache-Control: ['max-age=0, private, must-revalidate'] | 21 | Cache-Control: ['max-age=0, private, must-revalidate'] |
22 | Content-Type: [application/json; charset=utf-8] | 22 | Content-Type: [application/json; charset=utf-8] |
23 | ETag: [W/"7ff1379ca620fc17305457ccf5df730b"] | 23 | ETag: [W/"64a1c37806ed06518a5619fb3f3834e2"] |
24 | Transfer-Encoding: [chunked] | 24 | Transfer-Encoding: [chunked] |
25 | Vary: ['Accept-Encoding, Origin'] | 25 | Vary: ['Accept-Encoding, Origin'] |
26 | X-Content-Type-Options: [nosniff] | 26 | X-Content-Type-Options: [nosniff] |
27 | X-Frame-Options: [SAMEORIGIN] | 27 | X-Frame-Options: [SAMEORIGIN] |
28 | X-Request-Id: [423207b1-1749-40ba-8afd-62b58453a1ea] | 28 | X-Request-Id: [af1a0419-9aef-45cd-865f-025c51ba5d9b] |
29 | X-Runtime: ['0.155630'] | 29 | X-Runtime: ['0.278178'] |
30 | X-XSS-Protection: [1; mode=block] | 30 | X-XSS-Protection: [1; mode=block] |
31 | content-length: ['1416'] | 31 | content-length: ['1414'] |
32 | status: {code: 200, message: OK} | 32 | status: {code: 200, message: OK} |
33 | - request: | 33 | - request: |
34 | body: null | 34 | body: null |
@@ -40,19 +40,19 @@ interactions: | |||
40 | Content-Length: ['0'] | 40 | Content-Length: ['0'] |
41 | User-Agent: [python-requests/2.9.1] | 41 | User-Agent: [python-requests/2.9.1] |
42 | method: DELETE | 42 | method: DELETE |
43 | uri: http://localhost:3000/api/v1/statuses/99979652224677404 | 43 | uri: http://localhost:3000/api/v1/statuses/99984774365334064 |
44 | response: | 44 | response: |
45 | body: {string: '{}'} | 45 | body: {string: '{}'} |
46 | headers: | 46 | headers: |
47 | Cache-Control: ['max-age=0, private, must-revalidate'] | 47 | Cache-Control: ['max-age=0, private, must-revalidate'] |
48 | Content-Type: [application/json; charset=utf-8] | 48 | Content-Type: [application/json; charset=utf-8] |
49 | ETag: [W/"7e60af899f83a4649ca4a3417dfbd2c9"] | 49 | ETag: [W/"d3228d6dc30c85b680ec38afe342e6ed"] |
50 | Transfer-Encoding: [chunked] | 50 | Transfer-Encoding: [chunked] |
51 | Vary: ['Accept-Encoding, Origin'] | 51 | Vary: ['Accept-Encoding, Origin'] |
52 | X-Content-Type-Options: [nosniff] | 52 | X-Content-Type-Options: [nosniff] |
53 | X-Frame-Options: [SAMEORIGIN] | 53 | X-Frame-Options: [SAMEORIGIN] |
54 | X-Request-Id: [70238f1b-7337-4ca3-b69b-749c89aff5fb] | 54 | X-Request-Id: [45f522d9-2398-4a1d-a2af-0e121188b860] |
55 | X-Runtime: ['0.106151'] | 55 | X-Runtime: ['0.208675'] |
56 | X-XSS-Protection: [1; mode=block] | 56 | X-XSS-Protection: [1; mode=block] |
57 | content-length: ['2'] | 57 | content-length: ['2'] |
58 | status: {code: 200, message: OK} | 58 | status: {code: 200, message: OK} |